import axios from './myAxios'
import store from '@/store/index'
const urlMap = {
  development: '/',
  production: '/'
}
const baseUrl = urlMap[process.env.NODE_ENV]
const ERR_OK = 0

export function get(url) {
  return axios.get(baseUrl + url)
}

export function post(url,params) {
	return axios.post(baseUrl + url,
		params
	)
}